package net.farmework.smc.ribbon.ribbonrest.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class TestService {

    @Autowired
    RestTemplate restTemplate;

    public String  test(String name){
        return restTemplate.getForObject("http://TEST?name="+ name, String.class);
    }
}
